<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ["html","css"]
        /* indexOf  arr.indexOf(value)  获取数组的下标 
           没有的返回-1  */
        console.log(arr.indexOf("html"))
    </script>
</body>
</html>